package com.springboot3.consumer.controller;

import com.netflix.discovery.converters.Auto;
import com.springboot3.consumer.server.DemoOpenFeignProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Autowired
    DemoOpenFeignProviderService demoOpenFeignProviderService;

    @GetMapping("/server/info")
    public String demo(){
       return demoOpenFeignProviderService.getInfo();
    }
}
